package com.myspace.backend.controller.user;

import com.myspace.backend.service.user.UserListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class UserListController {
    @Autowired
    private UserListService userListService;

    @GetMapping("/myspace/user/userlist/")
    public List<Map<String, String>> getUserlist() {
        return userListService.getUserlist();
    }
}
